package Exam.Object.ExtendsDemo.ExtendsDemo1;

public class Animal {
    //权限修饰符
    //private: 子类无法访问
    public void eat(){
        System.out.println("吃饭");
    }
    public void drink(){
        System.out.println("喝水");
    }
}
